package org.framework.edge.builder.application;

import org.wu.framework.web.response.Result;
import org.wu.framework.web.response.ResultFactory;
import org.framework.edge.builder.domain.model.docker.repository.backup.record.DockerRepositoryBackupRecord;
import org.framework.edge.builder.application.command.docker.repository.backup.record.DockerRepositoryBackupRecordRemoveCommand;
import org.framework.edge.builder.application.command.docker.repository.backup.record.DockerRepositoryBackupRecordStoryCommand;
import org.framework.edge.builder.application.command.docker.repository.backup.record.DockerRepositoryBackupRecordUpdateCommand;
import org.framework.edge.builder.application.command.docker.repository.backup.record.DockerRepositoryBackupRecordQueryListCommand;
import org.framework.edge.builder.application.command.docker.repository.backup.record.DockerRepositoryBackupRecordQueryOneCommand;
import org.framework.edge.builder.application.dto.DockerRepositoryBackupRecordDTO;
import java.util.List;
import org.wu.framework.lazy.orm.database.lambda.domain.LazyPage;
import org.framework.edge.builder.application.command.docker.repository.backup.record.DockerRepositoryBackupRecordExcelExport;
import org.framework.edge.builder.application.command.docker.repository.backup.record.DockerRepositoryBackupRecordExcelImport;
/**
 * describe Docker仓库备份记录 
 *
 * @author Jia wei Wu
 * @date 2025/07/10 08:18 晚上
 * @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyApplication 
 **/

public interface DockerRepositoryBackupRecordApplication {


    /**
     * describe 新增Docker仓库备份记录
     *
     * @param dockerRepositoryBackupRecordStoryCommand 新增Docker仓库备份记录     
     * @return {@link Result<DockerRepositoryBackupRecord>} Docker仓库备份记录新增后领域对象     
     
     * @author Jia wei Wu
     * @date 2025/07/10 08:18 晚上
     **/

    Result<DockerRepositoryBackupRecord> story(DockerRepositoryBackupRecordStoryCommand dockerRepositoryBackupRecordStoryCommand);

    /**
     * describe 批量新增Docker仓库备份记录
     *
     * @param dockerRepositoryBackupRecordStoryCommandList 批量新增Docker仓库备份记录     
     * @return {@link Result<List<DockerRepositoryBackupRecord>>} Docker仓库备份记录新增后领域对象集合     
     
     * @author Jia wei Wu
     * @date 2025/07/10 08:18 晚上
     **/

    Result<List<DockerRepositoryBackupRecord>> batchStory(List<DockerRepositoryBackupRecordStoryCommand> dockerRepositoryBackupRecordStoryCommandList);

    /**
     * describe 更新Docker仓库备份记录
     *
     * @param dockerRepositoryBackupRecordUpdateCommand 更新Docker仓库备份记录     
     * @return {@link Result<DockerRepositoryBackupRecord>} Docker仓库备份记录领域对象     
     
     * @author Jia wei Wu
     * @date 2025/07/10 08:18 晚上
     **/

    Result<DockerRepositoryBackupRecord> updateOne(DockerRepositoryBackupRecordUpdateCommand dockerRepositoryBackupRecordUpdateCommand);

    /**
     * describe 查询单个Docker仓库备份记录
     *
     * @param dockerRepositoryBackupRecordQueryOneCommand 查询单个Docker仓库备份记录     
     * @return {@link Result<DockerRepositoryBackupRecordDTO>} Docker仓库备份记录DTO对象     
     
     * @author Jia wei Wu
     * @date 2025/07/10 08:18 晚上
     **/

    Result<DockerRepositoryBackupRecordDTO> findOne(DockerRepositoryBackupRecordQueryOneCommand dockerRepositoryBackupRecordQueryOneCommand);

    /**
     * describe 查询多个Docker仓库备份记录
     *
     * @param dockerRepositoryBackupRecordQueryListCommand 查询多个Docker仓库备份记录     
     * @return {@link Result <List<DockerRepositoryBackupRecordDTO>>} Docker仓库备份记录DTO对象     
     
     * @author Jia wei Wu
     * @date 2025/07/10 08:18 晚上
     **/

    Result <List<DockerRepositoryBackupRecordDTO>> findList(DockerRepositoryBackupRecordQueryListCommand dockerRepositoryBackupRecordQueryListCommand);

    /**
     * describe 分页查询多个Docker仓库备份记录
     *
     * @param dockerRepositoryBackupRecordQueryListCommand 分页查询多个Docker仓库备份记录     
     * @return {@link Result <LazyPage<DockerRepositoryBackupRecordDTO>>} 分页Docker仓库备份记录DTO对象     
     
     * @author Jia wei Wu
     * @date 2025/07/10 08:18 晚上
     **/

    Result <LazyPage<DockerRepositoryBackupRecordDTO>> findPage(int size,int current,DockerRepositoryBackupRecordQueryListCommand dockerRepositoryBackupRecordQueryListCommand);

    /**
     * describe 删除Docker仓库备份记录
     *
     * @param dockerRepositoryBackupRecordRemoveCommand 删除Docker仓库备份记录     
     * @return {@link Result<DockerRepositoryBackupRecord>} Docker仓库备份记录     
     
     * @author Jia wei Wu
     * @date 2025/07/10 08:18 晚上
     **/

    Result<DockerRepositoryBackupRecord> remove(DockerRepositoryBackupRecordRemoveCommand dockerRepositoryBackupRecordRemoveCommand);

    /**
     * describe 导出Docker仓库备份记录
     *
     * @param dockerRepositoryBackupRecordQueryListCommand 导出Docker仓库备份记录     
     * @return {@link List<DockerRepositoryBackupRecordExcelExport>} Docker仓库备份记录     
     
     * @author Jia wei Wu
     * @date 2025/07/10 08:18 晚上
     **/

    public List<DockerRepositoryBackupRecordExcelExport> exportExcel(DockerRepositoryBackupRecordQueryListCommand dockerRepositoryBackupRecordQueryListCommand);

    /**
     * describe 导入Docker仓库备份记录
     *
     * @param dockerRepositoryBackupRecordExcelImportList 导入Docker仓库备份记录     
     * @return {@link Result<List<DockerRepositoryBackupRecordExcelImport>>} Docker仓库备份记录     
     
     * @author Jia wei Wu
     * @date 2025/07/10 08:18 晚上
     **/

    public Result<List<DockerRepositoryBackupRecordExcelImport>> importExcel(List<DockerRepositoryBackupRecordExcelImport> dockerRepositoryBackupRecordExcelImportList);

}